<?php
//Get the module to be loaded
$module = $_GET['module'];
//Get the action to commence
$action = $_GET['action'];

//Need to include the controller associated with this action.
include_once 'public/'.$module.'Controller.class.php';

//Set the controller class needed.
$controller = $module."Controller";
//Create a new controller instance.
$control = new $controller($action);
//Invoke the needed function.
$control->invoke();

/*** error reporting on ***/
error_reporting(E_ALL);


?>
 